﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Ribbon.Core
{
    public class TextBoxItem : Control, IRibbonItem
    {
        private TextBox box;

        private string placeHolder;

        public string PlaceHolder
        {
            get { return placeHolder; }
            set { placeHolder = value; }
        }

        public TextBoxItem()
        {
            box = new TextBox();
            box.BorderStyle = BorderStyle.None;
            this.Controls.Add(box);
        }

        private RibbonGroup parent;

        public new RibbonGroup Parent
        {
            get
            {
                return parent;
            }
            set
            {
                this.parent = value;

                if (this.parent != null)
                    Resize();
            }
        }


        private Rect rect;

        public Rect Rect
        {
            get
            {
                return rect;
            }
            set
            {

            }
        }

        private System.Drawing.SizeF size;

        public new System.Drawing.SizeF Size
        {
            get
            {
                return size;
            }
            set
            {

            }
        }

        private new System.Drawing.PointF location;
        public new System.Drawing.PointF Location
        {
            get
            {
                return location;
            }
            set
            {

            }
        }

        private System.Drawing.Bitmap image;

        public System.Drawing.Bitmap Image
        {
            get
            {
                return image;
            }
            set
            {

            }
        }

        private bool maxImage;
        public bool MaxImage
        {
            get
            {
                return maxImage;
            }
            set
            {

            }
        }

        private bool isMouseHover;
        public bool IsMouseHover
        {
            get
            {
                return isMouseHover;
            }
            set
            {

            }
        }

        public void OnPaint(System.Drawing.Graphics g)
        {

        }

        public new void OnMouseDown(MouseEventArgs e)
        {

        }

        public new void OnMouseMove(MouseEventArgs e)
        {

        }

        public void OnMouseEnter(MouseEventArgs e)
        {

        }

        public void OnMouseLeave(MouseEventArgs e)
        {

        }

        public new void Resize()
        {

        }
    }
}
